package com.lekang.le.mapper;

import com.lekang.ZcqEntity.NursingCancelDTO;
import com.lekang.ZcqEntity.NursingDetailDTO;
import com.lekang.ZcqEntity.NursingExecuteRecord;
import com.lekang.ZcqEntity.NursingOrderVO;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;
import java.util.List;

public interface NursingJobMapper {
    List<NursingOrderVO> list(@Param("oldName") String oldName, @Param("nurseName") String nurseName,@Param("item") String item, @Param("s") LocalDateTime s,@Param("e") LocalDateTime e,@Param("status") String status);

    List<String> items();

    List<String> nurses();


    int selectTaIdByOldNameAndItemName(@Param("oldName") String oldName,@Param("itemName") String itemName);

    int cancel(@Param("taId") int taId,@Param("cancelTime") LocalDateTime cancelTime,@Param("reason") String reason);

    String selectRemark(String orderNo);

    NursingDetailDTO selectElderlyInfo(@Param("bedNo") String bedNo,@Param("oldName")String oldName);

    List<String> selectNursingNameList(Long bedId);

    String selectNursingLevel(String creatorName);

    int submitExecuteRecord(NursingExecuteRecord record);

    int reschedule(@Param("oldName") String oldName, @Param("itemName") String itemName, @Param("expectTime") LocalDateTime expectTime);
}
